package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 充值方案业务对象 ykj_pay_withdraw_plan
 *
 * @author yunkeji
 * @date 2024-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PayWithdrawPlanBo extends BaseEntity {

    /** 自增主键 */
    @NotNull(
            message = "自增主键不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 人民币到账金额 */
    @NotNull(
            message = "人民币到账金额不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private BigDecimal cnyPrice;

    /** 扣减钻石 */
    @NotNull(
            message = "扣减钻石不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private BigDecimal diamond;
}
